package com.common.api.enums;

import com.common.api.iface.CodeNameEnumFace;

import lombok.AllArgsConstructor;

/**
 * @author ficus
 * 操作类型
 */
@AllArgsConstructor
public enum OperateEnum implements CodeNameEnumFace {
	login("login","登录"),
	logout("logout","退出"),
	assignRoles("assignRoles", "分配角色"),
	assignPerms("assignPerms", "分配权限"),
	changePwd("changePwd", "修改密码"),
	resetPwd("resetPwd", "重置密码"),
//	enableFlag("enableFlag", "启用或禁用"),

	// 删除（各个模块分开）
	removeUser("removeUser", "删除用户"),
	removeRole("removeRole", "删除角色"),
	removeOrg("removeOrg", "删除组织机构"),
	removeMenu("removeMenu", "删除菜单"),
	removeParam("removeParam", "删除参数"),
	removeDictType("removeDictType", "删除字典分类"),
	removeDictItem("removeDictItem", "删除字典项"),
	// 修改（包含启用/禁用，各个模块分开）
	updateUser("updateUser", "修改用户"),
	updateRole("updateRole", "修改角色"),
	updateOrg("updateOrg", "修改组织机构"),
	updateMenu("updateMenu", "修改菜单"),
	updateParam("updateParam", "修改参数"),
	updateDictType("updateDictType", "修改字典分类"),
	updateDictItem("updateDictItem", "修改字典项"),
	// 新增（各个模块分开）
	addUser("addUser", "添加用户"),
	addRole("addRole", "添加角色"),
	addOrg("addOrg", "添加组织机构"),
	addMenu("addMenu", "添加菜单"),
	addParam("addParam", "添加参数"),
	addDictType("addDictType", "添加字典分类"),
	addDictItem("addDictItem", "添加字典项"),

	;
	private String code;
	
	private String name;
	
	@Override
	public String getEunmCode() {
		return code;
	}

	@Override
	public String getEnumName() {
		return name;
	}

}
